FROM pi4k8s/openjdk8:centos7

WORKDIR /opt

ADD app.jar /opt

ENV JAVA_OPTS "-Xms512m -Xmx512m"

COPY entrypoint.sh /opt/entrypoint.sh

RUN chmod a+x /opt/entrypoint.sh

ENTRYPOINT /opt/entrypoint.sh